package com.witmed.lib_base

import com.google.gson.Gson
import okhttp3.MediaType
import okhttp3.RequestBody

open class BaseRepository {

    fun createBody(map:Map<String,Any>):RequestBody{
        val str=Gson().toJson(map)
        return RequestBody.create(MediaType.parse("application/json;charset=utf-8"),str)
    }
}